#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPushButton>
#include <QFileDialog>
#include <getpost.h>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void switchPage();
    void openFolderDialog();
    void sendJsonMessage(const QString& message);



private slots:
    void on_xiaoxi_clicked();

    void on_haoyou_clicked();

    void on_qunliao_clicked();

    void on_addhaoyou_clicked();

    void on_addqunliao_clicked();

    void on_touxiang_clicked();

    void on_shezhi_clicked();

    void on_setTx_clicked();


    void on_MessageToSend_clicked();

private:
    Ui::MainWindow *ui;

    QPushButton *setTx;

    GetPost *getPost;

};
#endif // MAINWINDOW_H
